#view_chat {
  header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem 0 1rem;
    max-width: 800px;

    .createOne {}
  }

  .chatContainer {
    padding: 0.5rem 1rem 0 1rem;
    max-width: 800px;

    .newone_mask {
      height: 0;
      overflow: hidden;
      transition: all 0.15s ease-in-out;

      &.active {
        height: 156px;
      }

      textarea {
        width: 100%;
        border: none;
        outline: none;

      }
    }

    .chat-item {
      margin: 0.5rem 0;
      border: 1px solid #d0d0d0;
      border-radius: 0.5rem;
      display: flex;
      flex-direction: column;

      span {
        display: inline-block;
      }

      hr {
        margin: 0 0.375rem;
        border: none;
        border-bottom: 1px solid #e5e5e5;

      }

      section {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.25rem 0.5rem;

        white-space: warp;
        word-break: break-word;
        word-wrap: break-word;

        &:first-child {
          user-select: none;
        }

        &:last-child {

          margin-bottom: 0.25rem;

          p {
            text-indent: 1em;
          }
        }
      }
    }
  }
}

.myswitch {
  $lw: 3rem;
  $lh: 1.25rem;
  $at: 0.15s;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  user-select: none;

  .switch-label {
    cursor: pointer;
  }

  .switch-input {
    display: none;

    &:checked+label {

      background-color: rgb(50, 230, 50);

      & div {

        margin-left: calc($lw - $lh);
        background-color: #f5f5f5;
      }
    }
  }

  .switch-button {
    width: $lw;
    height: $lh;
    border-radius: $lh;
    background-color: #e0e0e0;
    display: block;
    transition: background-color $at ease-in-out;
    cursor: pointer;

    div {


      width: $lh;
      height: $lh;
      border-radius: 100%;
      background-color: #c0c0c0;
      transition: margin-left $at ease-in-out,
        background-color $at ease-in-out;
    }
  }
}